package cn.mumzone.pos.ui.adapter.warehouse;

import android.content.Context;

import cn.mumzone.basic.adapter.rv.MultiItemTypeAdapter;
import cn.mumzone.pos.model.WarehouseDetailEntity;

/**
 * Created By Dlx
 * on 2019/10/10
 */
public class ADA_WarehouseGoodsList extends MultiItemTypeAdapter<WarehouseDetailEntity.GoodsListBean> {
    private ItemView_ShortWarehouseDetail itemShort;
    private ItemView_LongWarehouseDetail itemLong;

    public ADA_WarehouseGoodsList(Context mContext) {
        super(mContext);
        itemShort = new ItemView_ShortWarehouseDetail();
        itemLong = new ItemView_LongWarehouseDetail();
        addItemViewDelegate(itemShort);
        addItemViewDelegate(itemLong);
    }

    public void setInType(String inType) {
        itemShort.setInType(inType);
        itemLong.setInType(inType);
        notifyDataSetChanged();
    }
}
